package cn.dao.impl;

import cn.dao.UserDao;
import org.springframework.stereotype.Repository;

@Repository("userDao")
public class UserDaoImpl implements UserDao {
    public void addUser() {
        // 模拟异常(用于异常通知)
        int i = 10 / 0;
        System.out.println("*** userDao操作：添加用户 ***");
    }

    public void deleteUser() {
        System.out.println("*** userDao操作：删除用户 ***");
    }
}
